#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main()
{
	int arr[10];
	int a = 0;
	int max = 0;
	for (a = 0; a < 10; a++)
	{
		scanf("%d", &arr[a]);
		if (arr[a] > max)
			max = arr[a];
	}
	printf("%d\n", max);
	return 0;
}